The government will again try to push through powers to detain mentally ill people who have not committed crimes.