Compromise reached to protect endangered river birds