How do law enforcement agencies purchase firearms from weapons companies?

They place and order and pay like anyone else.