WASHINGTON — President Donald Trump’s budget office on Wednesday rescinded a memo freezing spending on federal grants, less than two days after it sparked widespread confusion and legal challenges across the country.

The Monday evening memo from the White House Office of Management and Budget created uncertainty over a crucial financial lifeline for states, schools and organizations that rely on trillions of dollars from Washington and left the White House scrambling to explain what would and wouldn’t be subject to a pause in funding.

Even temporary interruptions in funding could cause layoffs or delays in public services.

The White House confirmed that OMB pulled the memo Wednesday in a two-sentence notice sent to agencies and departments, but said that Trump’s underlying executive orders targeting federal spending in areas like diversity, equity and inclusion and climate change, remained in place.

Administration officials said the notice to halt loans and grants was necessary to conduct a review to ensure that spending complies with Trump’s recent blitz of executive orders.

The freeze was scheduled to go into effect at 5 p.m. Tuesday, but was stayed by a federal judge until at least Monday after an emergency hearing requested by nonprofit groups that receive federal grants. An additional lawsuit by Democratic state attorneys general was also pending.

“The Executive Orders issued by the President on funding reviews remain in full force and effect and will be rigorously implemented by all agencies and departments,” White House press secretary Karoline Leavitt said, blaming the confusion on the courts and news outlets, not the administration. “This action should effectively end the court case and allow the government to focus on enforcing the ... orders on controlling federal spending.”

Administration officials insisted that despite the confusion, the order still had its intended effect by underscoring to federal agencies their obligations to abide by Trump’s executive orders.

Democratic critics of the order celebrated the action.

“This is an important victory for the American people whose voices were heard after massive pressure from every corner of this country — real people made a difference by speaking out,” said Sen. Patty Murray, D-Wash. “Still, the Trump administration — through a combination of sheer incompetence, cruel intentions and a willful disregard of the law — caused real harm and chaos for millions over the span of the last 48 hours which is still ongoing.”