The House passed $7.4 billion for a federal disaster-relief fund two days before it’s set to run out.