Federal agencies failed to follow the law in protecting the habitat of an endangered bumblebee that continues to be found in Illinois despite major population loss nationwide, according to a lawsuit filed Tuesday in Washington, D.C., by an environmentalist group.