President Biden signed into law a measure that boosts Social Security payments for nearly 3 million government workers who receive generous pensions from their time as teachers, firefighters, police officers and in other public service jobs.