A man accused of killing his ex-partner's baby has been committed to stand trial after a magistrate found there was sufficient evidence for conviction.