Campaigners lose legal challenge claiming the plan fails to protect vulnerable communities from climate change impacts.