A federal judge dismissed a gun-rights group's lawsuit challenging a Maryland law, saying the same issues are addressed in a separate case.