Mexico's President López Obrador has signed into law controversial reforms that mean judges at all levels will now be elected by the public rather than appointed.