The D.C. Council voted unanimously Tuesday to confirm Irvin B. Nathan as the city’s next attorney general, filling a key slot in Mayor Vincent C. Gray’s administration.

Nathan has been serving as interim attorney general since January and faced little opposition as his nomination worked its way through the council. Nathan replaced Peter Nickles, who had been former mayor Adrian M. Fenty’s controversial pick for the job.

Nathan previously served as general counsel to the U.S. House of Representatives. In his current job, Nathan has stressed that he wants to rebrand his office to make it more independent than the office was perceived to be under Nickles.

Nathan could be the city’s last appointed attorney general. Last year, D.C. voters approved a ballot initiative for an elected attorney general. The first election will be held in 2014.

The council also voted Tuesday to confirm Cynthia Brock Smith as secretary of the District. Brock Smith had previously served as council secretary.