Global weak solutions to Landau-Lifshitz equations into compact Lie algebras