The Welsh Government has pledged £2million to tackle antimicrobial resistance (AMR) in animals.