It comes as the company leans more heavily into AI and as it faces pressure from lawmakers.