New York lawmaker connected to nonprofit accused of lying about homeless vets being pushed out of hotel for migrants says he's no longer affiliated with foundation