The judge wrote that “immunity applies regardless of whether an activity was ‘unethical or motivated by bad faith.’” ...