Federal judge rules Trump administration cannot punish AI lab in clash over military use of its models