U.S. appeals court rules against Trump attempt to withhold funds from 'sanctuary' cities