Thailand has passed a law banning foreign couples from using Thai women as surrogates after a series of high-profile scandals tainting the image of the unregulated industry.