Portland's legal brief was filed days before Trump authorized sending troops to protect the ICE building in South Portland.