A self-employed bricklayer from Bradford was over the drug-drive limit when he was stopped by police, a court heard.