The federal government has forced the sale of 30 properties in Western Australia worth nearly $50 million, which were illegally acquired by foreign nationals since 2015.