The Supreme Court on Thursday rapped the Kerala government for passing a legislation, which in a way circumvented its earlier judgment permitting Tamil Nadu to raise the water level of Mullaperiyar dam from existing 136 to 142 feet.