Democratic US senator Mark Kelly is suing the Pentagon over attempts to punish him for his warnings about illegal orders.