The government is constructing more than 47,000 housing units for security officers as part of efforts to address accommodation shortages in the police, prisons and other security agencies.