The South Carolina representative, who has publicly criticized her party but backed it on most legislation, is trying to figure out how to be a mainstream Republican in the hard-right House G.O.P.