Justice Secretary Michael Matheson may have broken the law when he told police watchdogs allowing the Chief Constable to return from suspension was a “bad decision”, Labour has claimed.

Daniel Johnson, the party’s justice spokesman, has written to First Minister Nicola Sturgeon suggesting Mr Matheson’s behaviour could be construed as a breach of the legislation that established Police Scotland.

The Labour MSP also insisted an “urgent investigation” was needed into apparent breaches of the ministerial code.

It comes as the Justice Secretary is facing sustained pressure over his involvement when the Scottish Police Authority (SPA) reversed a decision to allow Chief Constable Phil Gormley to return to work while misconduct investigations are being carried out.

Mr Gormley, who denies the allegations against him, has been on leave since September 2017 as the Police Investigations and Review Commissioner (Pirc) carries out a probe.

The SPA board unanimously agreed in November that the Police Scotland chief could return to duty – but when the then chair Andrew Flanagan informed the Justice Secretary of this, he said Mr Matheson told him it was a “bad decision”.

According to Mr Johnson, this could constitute an order – or “direction” – to the independent police watchdog, which was made without following the proper procedures.

The Justice Secretary had previously made a statement to MSPs in which he insisted he had merely questioned the process the SPA had gone through when making the decision, asking whether the leadership team at Police Scotland had been informed along with those who had complained about Mr Gormley.

Mr Johnson said that in this Mr Matheson claimed “this intervention was concerned with ‘due process’ rather than with influencing the ‘outcomes’ of the SPA’s decision”.

He added that this stance was “not supported” by what Mr Flanagan later told MSPs on Holyrood’s Public Audit Committee

The Labour MSP stated: “As such, the minister’s characterisation of the meeting to Parliament was both inaccurate and knowingly misleading, in contravention of the (ministerial) code.

Mr Johnson continued: “At committee, Mr Flanagan also revealed that there were in fact two meetings held with the minister on that date.

“The minister’s omission of the second meeting from his statement to Parliament paints only a partial picture of the nature of his intervention, again raising questions of accuracy.”

In his letter to Ms Sturgeon, the Labour MSP also argued: “The minister’s action could also be construed as breach of section 5.3(b) of the Police and Fire Reform Act (Scotland) 2012.

“This states that Scottish ministers should lay a copy of a direction given to the authority before the Scottish Parliament.

“This would also constitute a breach of section 1.2 of the ministerial code requiring ministers to comply with the law.”

Mr Johnson continued: “A request where there is no option but to comply could reasonably be interpreted as a direction.

“There is no doubt that the minister sought to have the same effect as a direction would achieve, that is securing compliance with his instructions by exerting the influence of his office.”

Ms Sturgeon has vigorously defended her Justice Secretary in Parliament, insisting his actions were “entirely appropriate”.

A Scottish Government spokesman said: “The Justice Secretary has acted entirely appropriately at all times. He made clear to Parliament he felt such clear deficiencies in the SPA board’s decision-making process were completely unacceptable.

“Mr Matheson asked that further engagement and consultation be undertaken, to which the former SPA chair agreed. As noted by the former chair, Mr Matheson did not direct the SPA board to reverse its decision.

“The First Minister has already made it clear to Parliament that she supports the Justice Secretary’s actions. We will respond to Mr Johnson’s letter in due course.”