Homeland Security chief’s future uncertain after a right-wing media assault