Belgium's parliament has passed a controversial law allowing police to enter the homes of migrants whose asylum applications have been rejected but who have not been ordered to leave the country and who are considered a "threat to public security" with a court order.