Ex-Spanish PM to stand trial for corruption