Obama has struggled to fill many of the key positions at Homeland Security, which is the third-largest executive department and home to agencies such as Customs and Border Protection, the Coast Guard, the Transportation Security Administration and the Federal Emergency Management Agency.