GOP healthcare repeal fails after late-night vote