Honestly, I personally, was disappointed about this as well. I also would have hoped that Netanyahu, understanding the sensitivity of the situation, together with the huge gratitude we have towards President Trump for everything he has done for Israel, that he would have waited to only congratulate the official winner after the official election results were confirmed.
Here I explain why Netanyahu did it anyway.