WASHINGTON — A Republican drive to repeal the year-old health care law ended in party-line defeat in the Senate on Wednesday, leaving the Supreme Court to render a final, unpredictable verdict on an issue steeped in political and constitutional controversy.