Google to spend millions in settlement over pay and hiring discrimination allegations