Rep. Sean Patrick Maloney’s simultaneous campaigns for state attorney general and Congress may continue unhindered until the statewide primary in September, an Albany County Supreme Court justice decided Thursday.

Justice Denise Hartman said a section of state election law allows Maloney to decline his nomination for Congress if he wins the September primary for state attorney general. Local party leaders would then choose his replacement on the ballot.