Albany legislators failed to disclose that an expert who advised them was paid by unions that would benefit.