Laws meant to protect the most vulnerable people in France have failed, says the UN's special rapporteur on housing.