LONDON — Legislation that will end a centuries-old British rule that puts boys before girls in the succession to the throne has cleared the House of Lords, and now goes to Queen Elizabeth II for approval.

The change means that if Prince William and the former Kate Middleton have a girl first, she will become queen, and no younger brother will be able to jump the line and displace her.

The legislation also permits an heir to the throne to marry a Catholic, though Catholics would still be barred from succeeding to the throne.

The bill, which has been fast-tracked through Parliament, passed a third and final reading in the House of Lords Monday.

The government wants to change current laws, which date back to the 1701 Act of Settlement, before the royal couple's first child is born in July. The baby will be third in line to the throne after William and his father Prince Charles.

Kate, formally known as the Duchess of Cambridge, has kept up a fairly busy schedule of royal engagements since becoming pregnant.

On Tuesday, she visited a school in Manchester to launch a counseling project and meet workers from a youth mental health services charity.

Also on HuffPost:

Loading Slideshow...
  • Undated (St. Andrew's School,1986-1995)

    Back row, third from left.

  • Undated (St. Andrew's School,1986-1995)

    Front and center.

  • March 2005

  • June 2005

  • June 2005

  • June 2005

  • August 2005

  • November 2005

  • March 2006

  • March 2006

  • May 2006

  • June 2006

  • June 2006

  • June 2006

  • June 2006

  • June 2006

  • July 2006

  • July 2006

  • December 2006

  • December 2006

  • January 2007

  • January 2007

  • February 2007

  • March 2007

  • March 2007

  • May 2007

  • May 2007

  • May 2007

  • June 2007

  • July 2007

  • July 2007

  • November 2007

  • March 2008

  • March 2008

  • April 2008

  • June 2008

  • June 2008

  • July 2008

  • June 2008

  • September 2008

  • September 2008

  • June 2009

  • August 2009

  • July 2010

  • October 2010

  • November 2010

  • November 2010

  • December 2010

  • February 2011 in Katherine Hooker and Aquatalia by Marvin K.

  • February 2011 in Kiki McDonough

  • February 2011