The state Senate and Assembly voted Thursday to ban protests within 500 feet of a funeral service.
And Governor Doyle is expected to sign the measure soon.
The Senate's 33-0 vote is an effort aimed at members of a Kansas church who have disrupted funerals for soldiers who died in Iraq.
The Assembly quickly added the measure to its calendar and approved it 92-to-3.
Doyle told The Associated Press that he'll sign the legislation into law.
The measure would ban protesters from engaging in disorderly conduct within 500 feet of a funeral one hour before or after the service.
The Topeka-based Westboro Baptist Church -- led by Reverend Fred Phelps -- believes the deaths are taking place because the United States accepts homosexuality.