The Scottish government is to argue in court that a "blanket rule" about placing transgender prisoners in jails according to ...