By JAMES MacPHERSON, The Associated Press

BISMARCK, N.D. -- A federal judge on Monday temporarily blocked a new North Dakota law that bans abortion when a fetal heartbeat is detected – as early as six weeks into pregnancy, calling the law "clearly invalid and unconstitutional."

U.S. District Judge Daniel Hovland in Bismarck granted a temporary injunction Monday that blocks the Aug. 1 enactment of the law that abortion rights advocates call the most restrictive in the nation.

"There is no question that (the North Dakota law) is in direct contradiction to a litany of United States Supreme Court cases addressing restraints on abortion," Hovland wrote. " (It) is clearly an invalid and unconstitutional law based on the United States Supreme Court precedent in Roe v. Wade from 1973 ... and the progeny of cases that have followed."

"We have our job to do," Attorney General Wayne Stenehjem told The Associated Press. "We need to convince (Hovland) why the Legislature wanted to enact the law."

Stenehjem said the state will ask the court for a trial and already has hired an attorney to help argue the case.

New York-based Center for Reproductive Rights, which is representing the state's lone abortion clinic, Red River Women's Clinic in Fargo, filed the lawsuit in June after the law was passed this year by the North Dakota Legislature. It would outlaw the procedure as early as six weeks into pregnancy and before some women even know they are pregnant.

Abortion-rights advocates say the measures are an attempt to close North Dakota's lone abortion clinic. Supporters of the so-called fetal heartbeat measure, including Gov. Jack Dalrymple, have said it's a challenge the U.S. Supreme Court's 1973 Roe v. Wade ruling that legalized abortion up until a fetus is considered viable, usually at 22 to 24 weeks.

Janet Crepps, an attorney for the Center for Reproductive Rights, said the law banning abortions at six weeks "poses a very immediate threat to virtually all women seeking an abortion in North Dakota."

Red River director Tammi Kromenaker and Crepps said the six-week abortion ban would stop about 90 percent of abortions at the clinic.

"This ruling means that women won't have to rush in and make a decision," Kromenaker said of the injunction. "Now they have more time to talk to their loved one, their pastor – whoever they need to talk to – while weighing their decision to have an abortion."

Jeff Zent, a spokesman for Dalrymple, said the governor would not comment on the federal judge's ruling.

"It's our standing policy not to comment on litigation," he said.

The clinic's lawsuit also is challenging another new measure that would make North Dakota the only state to prohibit women from having an abortion because a fetus has a genetic defect, such as Down syndrome.

Kromenaker said the clinic wants that law overturned but didn't seek an immediate injunction to block it because abortions are not performed there for that reason.

The clinic is not challenging another new North Dakota law that would outlaw abortions after 20 weeks of pregnancy, based on the disputed premise that a fetus can feel pain by then. Texas Gov. Rick Perry last week signed into law a 20-week ban and other abortion restrictions for that state.

Kromenaker said the 20-week ban, which she believes is unconstitutional, does not apply to North Dakota because no abortions are performed at the clinic after 16 weeks.

Another measure would require a doctor who performs abortions to be a physician with hospital admitting privileges. A lawsuit challenging that law has been combined with another one challenging a 2011 North Dakota law that outlaws one of two drugs used in nonsurgical abortions. A state judge ruled last week that the 2011 law violates the state and U.S. constitutions. A judge hasn't yet issued a ruling on the new law requiring abortion doctors to have hospital admitting privileges.

___

Follow James MacPherson on Twitter at http://www.twitter.com/macphersonja

Also on HuffPost:

Loading Slideshow...
  • Alabama State Capitol (Montgomery, Ala.)

    Pictured on Tuesday, Feb. 7, 2012. (AP Photo/Dave Martin)

  • Alaska State Capitol (Juneau, Alaska)

    Pictured on Tuesday, Jan. 18, 2011. (AP Photo/Chris Miller)

  • Arizona State Capitol (Phoenix)

    Pictured on Friday, April 23, 2010. (Photo by John Moore/Getty Images)

  • Arkansas State Capitol (Little Rock, Ark.)

    Pictured on Wednesday, Nov. 30, 2011. (AP Photo/Danny Johnston)

  • California State Capitol (Sacramento, Calif.)

    Pictured on Thursday, Jan. 5, 2006. (Photo by David Paul Morris/Getty Images)

  • Colorado State Capitol (Denver)

    Pictured on Thursday, Oct. 26, 2006. (Photo by Doug Pensinger/Getty Images)

  • Connecticut State Capitol (Hartford, Conn.)

    Pictured on Tuesday, Feb. 7, 1999. (AP Photo/Bob Child)

  • Delaware State Capitol (Dover, Del.)

  • Florida State Capitol (Tallahassee, Fla.)

    Pictured on Monday, Jan. 3, 2011. (AP Photo/John Raoux)

  • Georgia State Capitol (Atlanta)

    Pictured on Tuesday, November 13, 2007. (Photo by Jessica McGowan/Getty Images)

  • Hawaii State Capitol (Honolulu)

  • Idaho State Capitol (Boise, Idaho)

    Pictured on Monday, Jan. 14, 2008. (Ned Dishman/NBAE via Getty Images)

  • Illinois State Capitol (Springfield, Ill.)

    Pictured on Tuesday, Sept. 21, 2004. (AP Photo/Seth Perlman)

  • Indiana State Capitol (Indianapolis)

    Pictured on Saturday, Feb. 4, 2012. (Photo by Jeff Gross/Getty Images)

  • Iowa State Capitol (Des Moines, Iowa)

    Pictured on Wednesday, Aug. 10, 2011. (Photo by Chip Somodevilla/Getty Images)

  • Kansas State Capitol (Topeka, Kan.)

    Pictured on Thursday, April 15, 2010. (AP Photo/Orlin Wagner)

  • Kentucky State Capitol (Frankfort, Ky.)

    Pictured on Wednesday, April 12, 2006. (AP Photo/James Crisp)

  • Louisiana State Capitol (Baton Rouge, La.)

    Pictured on Monday, Jan. 14, 2008. (Matthew HINTON/AFP/Getty Images)

  • Maine State Capitol (Augusta, Me.)

    Pictured on Monday, Oct. 17, 2011. (AP Photo/Pat Wellenbach)

  • Maryland State House (Annapolis, Md.)

    (Photo by Patrick Smith/Getty Images)

  • Massachusetts State House (Boston)

    Pictured on Tuesday, Jan. 2, 2007. (Photo by Darren McCollester/Getty Images)

  • Michigan State Capitol (Lansing, Mich.)

    Pictured on Wednesday, April 13, 2011. (Photo by Bill Pugliano/Getty Images)

  • Minnesota State Capitol (St. Paul, Minn.)

    Pictured on Friday, July 1, 2011. (Photo by Hannah Foslien/Getty Images)

  • Mississippi State Capitol (Jackson, Miss.)

    Pictured on Thursday, June 10, 1999. (AP Photo/Rogelio Solis)

  • Missouri State Capitol (Jefferson City, Mo.)

    Pictured on Friday, Oct. 16, 2000. (Photo credit should read ORLIN WAGNER/AFP/Getty Images)

  • Montana State Capitol (Helena, Mont.)

  • Nebraska State Capitol (Lincoln, Neb.)

    Pictured on Wednesday, Nov. 25, 1998. (AP Photo/S.E. McKee)

  • Nevada State Capitol (Carson City, Nev.)

  • New Hampshire State House (Concord, N.H.)

    Pictured on Friday, Dec. 28, 2001. (Todd Warshaw//Pool/Getty Images

  • New Jersey State House (Trenton, N.J.)

    Pictured on Friday, Aug. 13, 2004. (Photo by Chris Hondros/Getty Images)

  • New Mexico State Capitol (Santa Fe, N.M.)

  • New York State Capitol (Albany, N.Y.)

    Pictured on Sunday, March 16, 2008. (Photo by Daniel Barry/Getty Images)

  • North Carolina State Capitol (Raleigh, N.C.)

    Pictured in 1930. (AP Photo)

  • North Dakota State Capitol (Bismarck, N.D.)

    Pictured on Thursday, April 19, 2012. (AP Photo/Dale Wetzel)

  • Ohio Statehouse (Columbus, Ohio)

    Pictured on Tuesday, March 8, 2011. (Photo by Mike Munden/Getty Images)

  • Oklahoma State Capitol (Oklahoma City)

    Pictured on Wednesday, Feb. 29, 2012. (AP Photo/Sue Ogrocki)

  • Oregon State Capitol (Salem, Ore.)

    Pictured on Friday, May 20, 2011. (AP Photo/Rick Bowmer, file)

  • Pennsylvania State Capitol (Harrisburg, Pa.)

    Pictured on Thursday, June 28, 2012. (BRIGITTE DUSSEAU/AFP/GettyImages)

  • Rhode Island State House (Providence, R.I.)

    Pictured on Wednesday, Aug. 1, 1945. (AP Photo)

  • South Carolina State House (Columbia, S.C.)

    Pictured on Monday, Jan. 21, 2008. (Photo by Chris Hondros/Getty Images)

  • South Dakota State Capitol (Pierre, S.D.)

    Pictured on Tuesday, Jan. 10, 2012. (AP Photo/Doug Dreyer)

  • Tennessee State Capitol (Nashville, Tenn.)

    Pictured on Tuesday, Sept. 30, 1941. (AP Photo)

  • Texas State Capitol (Austin, Texas)

    Pictured on Tuesday, Oct. 4, 2011. (MIRA OBERMAN/AFP/Getty Images)

  • Utah State Capitol (Salt Lake City)

    Pictured on Thursday, March 15, 2001. (GEORGE FREY/AFP/Getty Images)

  • Vermont State House (Montpelier, Vt.)

    Pictured on April 9, 1953. (AP Photo/Francis C. Curtin)

  • Virginia State Capitol (Richmond, Va.)

    Pictured on Wednesday, May 2, 2007. (Photo by Chris Jackson/Getty Images)

  • Washington State Capitol (Olympia, Wash.)

    Pictured on Wednesday, Jan. 18, 2012. (AP Photo/Rachel La Corte)

  • West Virginia State Capitol (Charleston, W.V.)

    Pictured on July 2, 2010. (MANDEL NGAN/AFP/Getty Images)

  • Wisconsin State Capitol (Madison, Wis.)

    Pictured on Saturday, Dec. 24, 2011. (KAREN BLEIER/AFP/Getty Images)

  • Wyoming State Capitol (Cheyenne, Wyo.)

    Pictured on Tuesday, March 6, 2001. (Photo by Michael Smith/Newsmakers)