A federal judge on Friday blocked Mississippi from enforcing a new state law that would have effectively banned abortions after six weeks of pregnancy, finding the statute in clear violation of Supreme Court precedent establishing a constitutional right to the procedure before fetal viability.

Mississippi is among a half-dozen states this year to enact strict prohibitions on abortion and the latest slapped with an injunction.

Mississippi’s...