The tax collection agency had been on a hiring spree, funded by billions of dollars from President Biden’s Inflation Reduction Act.