Bulgaria won the Eurovision Song Contest for the first time in a final overshadowed by five countries' boycott over Gaza, claiming victory despite another big public vote for Israel.