Google Trims Hundreds of Jobs as It Marshals Resources for AI