The funding package now heads to the president.