Google to pay $17 million to states in Apple cookies case