He was reelected in 2012. During his second term, the government shut down. He was able to open diplomatic relations with Cuba. In 2015, the United States joined the Paris Climate Agreement. He attempted to nominate Merrick Garland to the Supreme Court, but was unsuccessful in doing so.