Maribyrnong in Melbourne and part of Villawood in Sydney will close in a move the Morrison government is hailing as a win for its tough border protection policies.