President Barack Obama has ordered the U.S. government to stop defending in court the Defense of Marriage Act, a law that bars gay marriage, but his personal views are not so clear.