The Indian government named a reporter in a police complaint after she wrote an article alleging a federal identity database breach, drawing criticism from a journalist group that accused officials of trying to muzzle free speech.