President Trump’s budget office Wednesday rescinded an order freezing spending on federal grants, less than two days after it sparked widespread confusion and legal challenges across the country, according to two people familiar with the matter.