My understanding for the money to be "illegally allocated", the court system would have to declare it so.

The article do not mention any lawsuits that overturn the allocation, just a couple senators disagreeing with the interpretation of the law. The senate does not interpret the law, but the judicial branch.