Friday's vote underscores the challenges for Trump in keeping House Republicans united to legislate his agenda.