The president’s top aides told agencies to prepare for potential firings if Congress cannot extend funding before the end of Sept. 30.