He and Republicans lost both houses, dooming most of his agenda for his last two years in office, as well as his proposal to limit abortions to 15 weeks.