For many Florida teachers, it’s an indignity on top of tragedy. Inside their retirement plans, they hold stock in the companies that make the AR-15 rifle, the weapon used to kill 17 of their students and colleagues at Stoneman Douglas High School this month.

The $163 billion Florida Retirement Pension Plan had a $4 million stake in gun manufacturers...