Virginia’s governor has become a close ally of Trump and defended his plan to freeze federal spending as other officials reeled from changing guidance.