Google has warned remote employees to return to the office or face termination, aiming to decrease costs and invest in AI.