President Obama on Friday will sign a two-month extension of highway funding into law, the White House said.

The measure prevents a sudden halt in infrastructure funding that was slated to begin May 31. But White House press secretary Josh Earnest criticized the stopgap bill as a punt and urged Congress to pass a long-term measure to fund road projects.