The Supreme Court said that the dam had already stood intact for 130 years and it could continue