A federal judge on Wednesday partially dismissed a lawsuit that seeks to block Colorado’s law requiring training to purchase most semiautomatic firearms. The new ruling follows an earlier decision against a preliminary injunction on parts of the statute.