LONDON — A plan by Scotland’s government to make it easier for people to change gender for legal purposes has sparked acrimonious debate, with lawmakers arguing inside the Edinburgh parliament and rival groups of protesters demonstrating outside. The Scottish parliament is set to resume debating the bill Wednesday after a session the previous day lasted until midnight. Supporters of transgender rights demonstrated outside the parliament building in Edinburgh to urge lawmakers to support the bill.