The House GOP’s slim majority could be harmed by New York congresswoman decamping for a cabinet post