Indonesia’s parliament approved a new criminal code on Tuesday that bans sex outside marriage with a punishment of up to one year in jail, despite worries the laws may scare…