There is a separate ballot for Prime Minister. Therefore, you could vote for the Labor candidate for Prime Minister, and the Likud party in the knesset.
They are going to have a coalition goverment.