Labour Neath MS Jeremy Miles said the result allowed them to work with parties on a “case-by-case basis”.