An Indian court ordered release of a Muslim doctor who was jailed under the country’s National Security Act for speaking against a controversial legislation.