More than four months before voters handed Republicans control of the House of Representatives, top White House and Department of Homeland Security officials huddled in the Roosevelt Room to prepare for that very scenario.