President Donald Trump signed a federal government funding package hours after the House of Representatives approved it.