Foreign Ministry sources link decision by Budapest to Hungarian leader's desire to help out PM amid controversy over plans to weaken judiciary, which have been likened to Hungary