When you take money from the Feds the Feds get to tell you where and how to spend it. The lesson here is to not take money from the Feds.
Unless the money is for immigration enforcement. Then the courts will step in.