The Senate passed the temporary spending bill on Wednesday in an 84-10 vote as lawmakers scrambled to prevent a shutdown.
The president did not approve the bill before a midnight Thursday deadline to fund the government, and U.S.
Trump signed the measure into law early Thursday after returning from a campaign event in Minnesota.
The law will ensure the government does not go through a crippling shutdown during a pandemic and about a month before the 2020 election.
Before then, lawmakers aim to hash out spending legislation to keep the government running through Sept.