Six people have been arrested after disorder broke out for a second night across Northern Ireland, with 17 officers injured.