Philly rep. pleads guilty in sting case; will resign