(CNN) — The Senate on Tuesday confirmed Eric Fanning to be secretary of the Army, making him the first openly gay secretary of a U.S. military branch.

Fanning’s nomination to the position, made by President Barack Obama last September, had been held up in the Senate by Republican Kansas Sen. Pat Roberts, who wanted assurances from the administration that detainees at Guantanamo Bay would not be transferred to the U.S. military prison at Ft. Leavenworth in Kansas as part of the administration’s policy to try and close the prison in Cuba.

Speaking on the Senate floor Tuesday afternoon, Roberts said he had received assurances during a meeting with Deputy Defense Secretary Robert Work that the administration would be unable to transfer any detainees to the United States from Guantanamo Bay because funding prohibitions from Congress for such moves remain in place.

Note: Read our discussion guidelines before commenting.