With labor and regulatory battles ahead, the tech giant tried getting confrontational with lawmakers.