Italian Deputy Prime Minister Matteo Salvini has defended his hard-line approach against illegal migration during a court appearance in Sicily.