Notwithstanding any other law, except limitations imposed by the Constitution, the legislative body of a county, city, district, political subdivision, or a public or municipal corporation, may accept grants or loans of funds made available by the Federal Government or a federal department or agency to aid in financing plans for, or construction of, public works.