Australia and Nauru signed an agreement on Friday to allow the Australian government to deport formerly detained people without valid visas to the tiny island nation