Legislators act to save right whales