A Spanish judge has charged 29 people with the 2004 Madrid train bombings that killed 191 people , and ruled that al-Qaida was not involved .