The reform is one of the first introduced by PM Peter Magyar as he seeks to return Hungary to the EU mainstream.