A man and woman used their baby to distract guards while smuggling drugs into HMP Berwyn, Wrexham, a court heard.