Which collection of laws provided the foundation for the government of the Roman republic by guaranteeing some rights for the plebeians , or common people ?