WASHINGTON (USA Today) -- An anti-abortion activist who climbed a tree and heckled President Obama during Monday's inauguration has been banned from the District of Columbia.

Rives Miller Grogan, 47, of Los Angeles, was charged with violating a previous order to stay away from the U.S. Capitol, The Washington Post reports. He was also charged with violating laws to protect the Capitol and its grounds.

During a hearing Tuesday, the 40th anniversary of the Supreme Court decision legalizing abortion, a D.C. judge freed Grogan, ordering him to stay away from the Capitol and the District. He'll be allowed back in on Feb. 25 for his next court hearing.

Since 2009, he's been convicted five times in D.C., mostly for disorderly conduct or disobeying police.

Authorities said Grogan, a former pastor, had an inauguration ticket and went through security screening about 8 a.m. He then climbed a thin evergreen near First Street and Maryland Avenue, near the Capitol.

A fire ladder truck couldn't get through a security barrier, and Grogan climbed higher when police brought in a ladder, so U.S. Capitol Police decided to leave him in the tree to not disrupt the swearing-in.

During the five hours in his 40-foot-high perch Grogan displayed a sign, "Pray to end abortion," while shouting slogans against Obama and Democrats. A spectator said he paused only when Beyoncé performed the National Anthem.

Last week, Grogan was arrested for shouting from the U.S. Senate gallery, a repeat of another protest Dec. 28 during the fiscal cliff debate.

Twice he has disrupted Supreme Court sessions.

Grogan's typical punishment has involved fines, probation or suspended sentences and short stints in jail.

In October, Grogan was arrested in Cincinnati after he ran onto the field before Game 3 of the third National League Division Series playoff between the hometown Reds and the San Francisco Giants. He waved an anti-abortion sign that also endorsed Mitt Romney for president.