WASHINGTON  President Barack Obama won a series of major cases before the Supreme Court on health care, gay rights, affirmative action and abortion, helping to preserve significant parts of his legacy.