Barca secure Spanish championship