The Trump administration will settle a lawsuit that challenged a policy targeting New York state residents after Justice Department attorneys admitted that officials made false statements in federal court in defending the regulation.