SAN FRANCISCO ( AP ) - A federal appeals court upheld the use of the words " under God " in the Pledge of Allegiance and " In God We Trust " on U.S. currency , rejecting arguments Thursday that the phrases violate the separation of church and state .