The Department of Homeland Security began to take shape five years ago, merging two dozen agencies and almost 200,000 federal employees. More than $200 billion later, the department faces low morale, missed deadlines and continued concerns about its abilities.