THE CHILDREN HAVE JUST BEEN GIVEN THE GIFT ( BY THEM ).OR

4. The children have just been given the gift ( by them ).

Or: The gift has just been given to the children ( by them ).