Judge orders Niagara Falls to pay $4.029 million to NFR