State and local governments worry credit for big projects could be used to offset cost of Donald Trump’s ‘big, beautiful bill’