A Republican lawmaker from upstate New York has apologized for likening Gov. Andrew Cuomo to the dictators Hitler and Mussolini while criticizing how new, stricter gun laws were pushed through the Legislature last month.