In a historic ruling, several environmental campaigners will be able to argue at criminal trial that their political motives are a defense to their illegal acts