New York's highest court upheld a state law on Tuesday that allows any voter to cast a ballot by mail, rejecting a Republican-led lawsuit challenging the statute.