Labour held off challenges from the Conservatives and Plaid Cymru at the Welsh Parliament election.