Jenkins-Serrin problem for horizontal translating graphs in $M \times\mathbb{R}$