Appeals court sides with tech giants in activists’ lawsuit