The court's opinion, written by Justice Abe Fortas, ruled that the Arkansas law violated "the constitutional prohibition of state laws respecting an establishment of religion or prohibiting the free exercise thereof.