U.S. President Joe Biden on Thursday signed a stopgap funding bill into law, avoiding a federal government shutdown, the White House announced.