It's very unfortunate that the Republicans didn't have the stomach to stop this sort of thing but if Congress passed the budget then the spending is legal, if very unwise
My opinion is there are more sinister reasons this was not stopped.