Legislators passed a resolution supporting the state’s Republican governor by a wide margin — though a substantial number of the chamber’s GOP caucus voted against it.