The federal government has rejected a request by the MBTA and other big-city transit agencies to use antiterrorism grants to install systems that detect chemical threats in subway stations.