Google agreed to pay $350 million to settle a lawsuit by shareholders related to a security bug at its now-defunct Google+