A Washington state public school district violated the constitutional rights of a former football coach by barring him from praying on the field at the end of games, a divided U.S. Supreme Court ruled on Monday.