Brazil’s Senate on Tuesday gave final approval to a landmark reform of the country’s social security system, in a step seen as key to stabilizing public finances and the economy.