Preparing to take power and fill thousands of federal jobs is a monthslong project that can cost tens of millions of dollars.