President Donald Trump lashed out at New York Democrats on Thursday after the state's attorney general sued him.