A federal judge has ruled that Google Inc. must comply with the FBI's warrantless demands for customer data, rejecting the company's argument that the government's practice of issuing so-called national security letters was unconstitutional and unnecessary.