BMW is to supply over 240,000 diesel engines for use in American police cars in a deal worth billions of euros.