funciones del tribunal de justicia