The federal government appealed a court decision that ruled its efforts to revoke student visas based on protected speech were unconstitutional.