A state appellate court has ruled that U.S. Rep. Sean Patrick Maloney, D-New York, may run for state attorney general while already being the Democratic nominee for his lower Hudson Valley congressional district.

The Appellate Division, Third Department affirmed a decision from earlier this month by Albany Supreme Court Justice Denise Hartman that allowed Maloney to keep his name on the ballot for Congress unless he wins the statewide primary for attorney general next month.