A US judge dismissed government antitrust lawsuits against Facebook before the cases barely got off the ground.