U.S. President Barack Obama speaks during a visit to the University of Kansas in LawrenceU.S. President Barack Obama said on Thursday he hoped the Supreme Court would issue a ruling that would prevent states from banning gay marriage when it rules on the issue later this year. The court last week agreed to decide whether states can ban gay marriage. Obama has said previously that he is in favor of allowing same-sex couples to wed. More