Trump’s attacks on inspectors general galvanize unusual coalition of critics