Tried to found solution by myself but didn't find nothing certain, I'm still not very good in LaTeX. I have code which works well.
\documentclass[14pt]{extreport}
\usepackage[normalem]{ulem}
\newcommand\s{\nobreak \hskip\fill \allowbreak \space \hskip-\fill \relax}
\begin{document}
\hfill\begin{minipage}[t]{0.7\textwidth}
\begin{flushleft}
\obeyspaces\let =\s
Lorem:~\uline{ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.\hfill}
\end{flushleft}
\end{minipage}
\end{document}
But after I try to move \obeyspaces\let =\s command to environment header
\documentclass[14pt]{extreport}
\usepackage[normalem]{ulem}
\newcommand\s{\nobreak \hskip\fill \allowbreak \space \hskip-\fill \relax}
\newenvironment{under}
{\obeyspaces\let =\s}
{}
\begin{document}
\hfill\begin{minipage}[t]{0.7\textwidth}
\begin{flushleft}
\begin{under}
Lorem:~\uline{ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.\hfill}
\end{under}
\end{flushleft}
\end{minipage}
\end{document}
I'm getting an error
! Missing control sequence inserted.
<inserted text>
\inaccessible
l.13 \begin{under}
How can I fix it?

Lorem:~\uline{\ftext \stext labore et dolore magna aliquyam erat, sed diam voluptua.\hfill}where\newcommand\ftext{ipsum dolor sit amet,}\newcommand\stext{consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut}– Konstantin Jan 15 '18 at 03:50