The Labor Department’s consumer price index held steady last month, rising as expected for the year ending in August.