Spanish court bans Basque nationalists from local elections