Gov. Scott Walker on Friday signed into law a bill that limits bargaining rights for most government workers, ending a rancorous legislative battle but doing little to stem a loud and continuing debate — here and around the country — over the future of unions.