They do not have to let you take the photographs or otherwise enter onto their yard unless you use the legal mechanisms of "discovery" to make a formal request in the context of the legal case against you for the right to do this. If it is a police impound yard, you would make a discovery request to the prosecutor; if a private yard contracted with the police, you would send them a subpoena to present the vehicle for your photographs, etc.